﻿@model GsifWeb4.Models.forum_gsif

@{
    ViewBag.Title = "Create";
}

<h2>Skriv ett inlägg</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>forum_gsif</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Namn)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Namn)
            @Html.ValidationMessageFor(model => model.Namn)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Epost)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Epost)
            @Html.ValidationMessageFor(model => model.Epost)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Adress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Adress)
            @Html.ValidationMessageFor(model => model.Adress)
        </div>

        @*<script type="text/javascript" src="~/Scripts/tinymce/tiny_mce.js"></script>*@
        <script type="text/javascript">
            tinyMCE.init({
                theme: "advanced",
                mode: "textareas",
                plugins: "fullpage",
                theme_advanced_buttons3_add: "fullpage"
            });
        </script>

        <div class="editor-label">
            @Html.LabelFor(model => model.Text)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Text)
            @Html.ValidationMessageFor(model => model.Text)
        </div>

        <p>
            <input type="submit" value="Skicka" id="submitMessage"/>
        </p>
    </fieldset>
}

<div>
    @*@Html.ActionLink("Tillbaka", "Index")*@
    @Html.ActionLink("Tillbaka", "Index", "Forum", new { forumType = (int)GsifWeb4.Common.ForumTypes.Main }, null)
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
